<?php
if (!class_exists("go_sql")){
include("/var/www/html/new/conf/le.je");
  $le=new go_sql();
  $le->connect();
}

$ac1='16ucom';
$pw1='c33367701511b4f6020ec61ded352059';
$inSide = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac1|pw_16u=$pw1|auth_16u=true"));

$account = $_REQUEST['account'];
if(!$account) exit('{"code":"105","msg":"请输入账号"}');
if(strlen($account)!=6) exit('{"code":"101","msg":"请输入有效账号"}');
// 根据账号生成接口编码
if($account){
	$sql="select dname,id from pft_member where account='$account' limit 1";
	$GLOBALS['le']->query($sql);
	if(!$GLOBALS['le']->fetch_assoc()) exit('{"code":"1011","msg":"账号不存在"}');

	$dname = $GLOBALS['le']->f('dname');
	$memberSID = $GLOBALS['le']->f('id');
	$chpw  = $inSide->Create_Conn_REC($account, $dname);
	echo $chpw;
}
?>